package com.cloudkinto.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cloudkinto.entity.ProductInfoDo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 * @author 张永远
 * @since 2020-06-04
 */
@Mapper
public interface ProductInfoDao extends BaseMapper<ProductInfoDo> {
    List<ProductInfoDo> selectAll(IPage<ProductInfoDo> page, @Param("map") Map<String, String> map, List<Long> ids);

    List<ProductInfoDo> selectAll(@Param("map") Map<String, String> map, List<Long> ids);

    ProductInfoDo selectObject(@Param("id") Long id);

    void updateObject(Long id, Integer deleteFlag);
}
